package entity;

public class Goods {
    private Integer id;
    private String goodsName;
    private String description;
    private Float price;

    @Override
    public String toString() {
        return "这是javaBean-Goods{" +
                "id=" + id +
                ", goodsName='" + goodsName + '\'' +
                ", description='" + description + '\'' +
                ", price=" + price +
                '}';
    }

    public Goods() {
    }

    public Goods(Integer id, String goodsName, String description, Float price) {
        this.id = id;
        this.goodsName = goodsName;
        this.description = description;
        this.price = price;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }
}
